package cn.luckdou.PC.Hbean;

import java.io.Serializable;

public class ResultVo implements Serializable {
    private Long code;
    private String text;
    private Object obj;

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    public void setErrorText() {
        this.text = "error";
        this.code=500L;
    }
    public void setErrorText(String text) {
        this.text = text;
        this.code=500L;
    }

    public void setSuccessText(){
        this.text = "success";
        this.code=200L;
    }
    public void setSuccessText(String text){
        this.text = text;
        this.code=200L;
    }

    public void setErrorText(String text, long code) {
        this.text = text;
        this.code=code;
    }

}
